import {take,call,put,fork} from 'redux-saga/effects';
import serGroup from '../servers/serGroup';

function *sagGroup() {
    while (true){
        let action = yield take('ABAN');
        let payload=yield call(serGroup,action);
        let data={};
        if(payload.code===200){
            data=payload.aBan;
        }
        yield put({type:'aBan',aBan:data})

    }
}
export default [
    fork(sagGroup)
]